import AsyncStorage from '@react-native-async-storage/async-storage'

export const ACCESS_TOKEN_KEY = 'user_access_token'

const StorageUtil = {
  setItem: async (key: string, value: string) => {
    AsyncStorage.setItem(key, value)
  },
  getItem: async (key: string) => {
    const value = await AsyncStorage.getItem(key)
    return value
  },
}

export default StorageUtil
